package cn.xxd.common;

import javax.servlet.http.HttpServletRequest;

/*
 * 获取路径
 * 2020/1/17 才引入， 之前的没用上先放一放..
 */
public class UrlUtil {
    public static String getUrl(HttpServletRequest request) {
        StringBuffer requestURL = request.getRequestURL();
        int i = request.getRequestURI().length();
        String url = requestURL.substring(0, requestURL.length() - i);
        return url;
    }
}
